package com.dianshang.controller.system;

import com.alibaba.dubbo.config.annotation.Reference;
import com.dianshang.service.system.MenuService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;
import java.util.Map;

@RestController
@RequestMapping("/menu")
public class MenuController {

    @Reference
    private MenuService menuService;

    /**
     * 查询全部菜单
     */
    @RequestMapping("/findMenu")
    public List<Map> findMenu(){
        return menuService.findMenu();
    }

}